
<h1>Categories</h1>

<p><?php echo  link_to('Add New Category',array('controller'=>'admin/news' ,'action'=>'modify_category')
) ?></p>
<?php

    if ( has_access_to('News::Manage News Categories') )
     {
         $report->set_action('edit',url_for(array('controller'=>'admin/news' ,'action'=>'modify_category')));
         $report->set_action('delete',url_for(array('controller'=>'admin/news' ,'action'=>'delete_category')));
     }

?>
<?php echo  $report->Render(30) ?>
<div class='section'>
<p><b>Note:</b><br>
Deleting a category does not delete posts from that category, it will just set them back to the default category <b><?php echo  $default_category ?></b>.</p>
</div>